<template>
  <div class="home">

    <el-container>
    
            <heads></heads>

      <el-main style="padding: 0">
        <swi></swi>
        <div class="main_box">
          <!-- 公司介绍 -->
          <div class="About_Us_box">
            <h1>公司介绍</h1>
            <div class="About_Us_box_list">
              <el-row :gutter="20">
                <el-col :lg="24" :md="24" :sm="24">
                  <div class="About_Us_box_list_item"></div>
                </el-col>
              </el-row>
            </div>
          </div>
          <!-- 公司产品 -->
          <div class="Company_Products_box">
            <h1>公司产品</h1>
            <h5 class="zaixx">成为世界领先的AI企业，推动科技进步和社会发展</h5>
            <!-- 第一行 -->
            <div class="Company_Products_box_List">
              <el-row :gutter="12">
                <el-col
                  class="Company_Products_box_List_mar_bot"
                  :lg="6"
                  :md="10"
                  :sm="24"
                  v-for="(item, index) in list"
                  :key="index"
                >
                  <el-card style="border-radius: 20px">
                    <div class="Company_Products_box_item">
                      <div class="Company_Products_box_item_top">
                        <img
                          :src="'http://'+item.imageUrl"
                          alt=""
                          class="Company_Products_box_item_img"
                        />
                        <div class="Company_Products_box_item_num">1</div>
                      </div>
                      <div class="Company_Products_box_item_tit">
                        
                      </div>
                      <div class="Company_Products_box_item_dic">
                        {{ item.describe }}
                      </div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
            </div>
      
            <div class="Company_Products_box_item_background">
              <h1 class="Company_Products_box_item_background_title">
                研究历程
              </h1>
              <div class="line_box">
                <img
                  src="../../public/img/icons/gs1.png"
                  alt=""
                  class="line_box_img1"
                  v-for="(item, index) in 5"
                  :key="index"
                />
              </div>
              <div class="Company_Products_box_item_background_List">
                <div
                  class="Company_Products_box_item_background_List_item"
                  v-for="(item, index) in 5"
                  :key="index"
                >
                  <div
                    class="Company_Products_box_item_background_List_item_Lf"
                  >
                    <img src="" alt="" />
                  </div>
                  <div
                    class="Company_Products_box_item_background_List_item_Ri"
                  >
                    <h3>校办/教职工会议</h3>
                    <p>
                      成为世界领先的AI企业，推动科技进步和社会发展我们是一家致力于人工智能技术研发与应用的公司。将人工智能技术应用于各个行业。
                    </p>
                  </div>
                </div>
              </div>
              <!-- <span</span> -->
              <!-- <img src="../../public/img/icons" alt="" /> -->
            </div>
            <!-- 合作伙伴 -->
            <div class="cooperative_partner_box">
              <h3>合作伙伴</h3>
              <div class="cooperative_partner_box_List">
                <el-row :gutter="20">
                  <el-col
                    :lg="4"
                    :xs="8"
                    :md="7"
                    :sm="8"
                    v-for="(item, index) in Partnerdatass"
                    :key="index + 'a'"
                    style="margin-right: 30px"
                  >
                    <el-card :body-style="{ padding: '0px' }">
                      <img
                        src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
                        class="image"
                      />
                      <!-- <i></i> -->
                      <div style="padding: 14px">
                        <span>{{ item.name }}</span>
                      </div>
                    </el-card>
                  </el-col>
                </el-row>
              </div>
              <!-- <div class="cooperative_partner_box_List">
                <el-row :gutter="20" type="flex" justify="center">
                  <el-col :span="4" v-for="(o, index) in 5" :key="index + 'a'">
                    <el-card :body-style="{ padding: '0px' }">
                      <img
                        src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
                        class="image"
                      />
                      <div style="padding: 14px">
                        <span>好吃的汉堡</span>
                      </div>
                    </el-card>
                  </el-col>
                </el-row>
              </div> -->
            </div>
          </div>
        </div>
      </el-main>
      <!-- 背景图 -->
      <el-footer>Footer</el-footer>
    </el-container>
  </div>
</template>
<script>
// @ is an alias to /src
import Swiper from "swiper";
import heads from "@/components/header/heads.vue";
import swi from "@/components/home/swi.vue";
import { getdatahb } from "../request/api/huoban";
import {get} from "@/request/http"
export default {
  data() {
    return {
      About_input: "",
      Partnerdata: [],
      list: [],
    };
  },
  components: {
    swi,
    heads
  },
  methods: {
        async beforeCreate() {
    let res = await getdatahb();
    console.log("resres", res);
    this.Partnerdata = res.data.data;
  },
    
  async getlist(){
       let res = await get("/api/product/list")
       console.log("res",res);
       this.list = res.data.data.splice(0,10)
    },
  },
  computed: {
    Partnerdatass() {
      return this.Partnerdata.splice(0, 10);
    },
  },
  created() {},
  mounted() {
    this.getlist()
    new Swiper(this.$refs.floor1Swiper, {
      //direction: 'vertical', // 垂直切换选项
      loop: true, // 循环模式选项
      // 如果需要分页器
      pagination: {
        el: ".swiper-pagination",
        clickable: true, //设置小原店面可以切换
      },

      // 如果需要前进后退按钮
      navigation: {
        nextEl: ".swiper-button-next",
        prevEl: ".swiper-button-prev",
      },

      // 如果需要滚动条
      scrollbar: {
        el: ".swiper-scrollbar",
      },
    });
  },
};
</script>

<style lang="scss" scoped>
.headbox{
width: 100%;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.About_Us_box {
  width: 980px;
  margin: 0 auto;
  .About_Us_box_list {
    width: 100%;
    // display: flex;
    // flex-wrap: wrap;
    // .About_Us_box_list_item:first-child {
    //   width: 475px;
    //   height: 152px;
    //   box-sizing: border-box;
    //   border-radius: 20px;
    // }
    .About_Us_box_list_item {
      // width: 475px;
      height: 152px;
      box-sizing: border-box;
      // border: 2px solid #0066ff;
      border-radius: 20px;
      background: #ccc;
      margin: 0 auto;
      margin-bottom: 20px;
      // transition: 0.5s;
    }
  }

  h1 {
    text-align: center;
  }
  .Abour_Us_inp {
    width: 99%;
    height: 356px;
    padding-left: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #000;
  }
  .understand_txt {
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
}
.Company_Products_box {
  // width: 1180px;
  margin: 0 auto;
  h1 {
    text-align: center;
  }
  h5 {
    text-align: center;
    color: #989db0;
  }
  .zaixx {
    margin-top: 40px;
  }
}
// .About_Us_box_list_item:first-child {
//   border: 2px solid #0066ff;
// }
// .About_Us_box_list:first-child .About_Us_box_list_ite:first-child {
//   border: 2px solid #0066ff;
// }
.Company_Products_box_List {
  width: 1180px;
  margin: 0 auto;
  margin-bottom: 20px;
  .Company_Products_box_List_mar_bot {
    padding: 20px;
    :hover {
      background-color: blue;
      transition: 1s;
    }
  }
  .Company_Products_box_item {
    text-align: left;
    width: 280px;
    height: 210px;
    padding: 0 25px 0 0;
    box-sizing: border-box;
    .Company_Products_box_item_top {
      display: flex;
      justify-content: space-between;
    }
    .Company_Products_box_item_img {
      width: 58px;
      height: 58px;
    }
    .Company_Products_box_item_tit {
      margin-top: 20px;
      margin-bottom: 15px;
    }
    .Company_Products_box_item_dic {
      margin-top: 28px;
    }
    .pagenum {
      position: absolute;
      bottom: 20px;
      left: 17px;
    }
  }
}
.el-card .is-always-shadow {
  border-radius: 30px;
}
.Company_Products_box_item_background {
  // width: 1920px;
  width: 100%;
  height: 600px;
  background-color: lightblue;
  // text-align: left;
  margin: 0 auto;
  .Company_Products_box_item_background_title {
    padding-top: 40px;
    box-sizing: border-box;
    font-size: 32px;
  }
  .line_box {
    width: 1178px;
    height: 5px;
    background: #fff;
    border-radius: 5px;
    margin: 0 auto;
    position: relative;
    top: 210px;

    .line_box_img1:nth-child(1) {
      position: absolute;
      left: 190px;
      bottom: -7px;
    }
    .line_box_img1:nth-child(2n) {
      transform: rotate(180deg);
      bottom: -13px !important;
    }
    .line_box_img1:nth-child(2) {
      position: absolute;
      left: 358px;
      bottom: -7px;
    }
    .line_box_img1:nth-child(3) {
      position: absolute;
      left: 498px;
      bottom: -7px;
    }
    .line_box_img1:nth-child(4) {
      position: absolute;
      left: 698px;
      bottom: -7px;
    }
    .line_box_img1:nth-child(5) {
      position: absolute;
      left: 858px;
      bottom: -7px;
    }
  }
  .Company_Products_box_item_background_List {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 1178px;
    margin: 0 auto;
    .Company_Products_box_item_background_List_item {
      display: flex;
      width: 380px;
      height: 150px;
      align-items: center;
      background-color: #fff;
      border-radius: 10px;

      .Company_Products_box_item_background_List_item_Lf {
        width: 95px;
        text-align: center;
        img {
          width: 55px;
          height: 54px;
        }
      }
      .Company_Products_box_item_background_List_item_Ri {
        h3 {
          margin-top: 34px;
        }
        p {
          width: 264px;
          height: 51px;
          font-weight: 400;
          font-size: 12px;
          color: #798099;
          line-height: 17px;
          text-align: left;
          font-style: normal;
          text-transform: none;
        }
      }
    }
    .Company_Products_box_item_background_List_item:nth-child(2n) {
      position: absolute;
      top: 276px;
      left: 200px;
      background: red;
    }
    .Company_Products_box_item_background_List_item:nth-child(4) {
      position: absolute;
      top: 276px;
      left: 600px;
      background: red;
    }
  }
}
.cooperative_partner_box {
  width: 1180px;
  margin: 0 auto;
  .cooperative_partner_box_List {
    margin-bottom: 20px;
  }
  img {
    width: 100%;
    height: 100%;
  }
}
</style>